import request from '@/utils/request'

// 查询销售发票明细列表
export function listInvoiceLine(query) {
  return request({
    url: '/xs/invoiceLine/list',
    method: 'get',
    params: query
  })
}

// 查询销售发票明细详细
export function getInvoiceLine(lineId) {
  return request({
    url: '/xs/invoiceLine/' + lineId,
    method: 'get'
  })
}

// 新增销售发票明细
export function addInvoiceLine(data) {
  return request({
    url: '/xs/invoiceLine',
    method: 'post',
    data: data
  })
}

// 修改销售发票明细
export function updateInvoiceLine(data) {
  return request({
    url: '/xs/invoiceLine',
    method: 'put',
    data: data
  })
}

// 删除销售发票明细
export function delInvoiceLine(lineId) {
  return request({
    url: '/xs/invoiceLine/' + lineId,
    method: 'delete'
  })
}
